import { businessAxios, datashopAxios } from '@/utils/request'

/* ********** 基础数据 start ********** */
// 首页简介
export const reqIndexIntro = (): Promise<any> => {
  return businessAxios({
    url: '/api/datamarket/v2/banner-intro/1',
    method: 'get'
  })
}

// 主题列表
export const reqTopicList = (params: any): Promise<any> => {
  return datashopAxios({
    url: '/api/datashop/v3/data-topics',
    method: 'get',
    params
  })
}

/* ********** 基础数据 end ********** */

/* ********** 产业数仓 start ********** */
// 首页简介
export const reqGlobalDefinition = (): Promise<any> => {
  return businessAxios({
    url: '/api/datamarket/v2/banner-intro/2',
    method: 'get'
  })
}

/* ********** 产业数仓 end ********** */
